﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_CancelFlight : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnAddPrice_Click(object sender, EventArgs e)
    {
        int flightID = Convert.ToInt32(DropDownList1.SelectedValue);
        FlightBAL _flightBal = new FlightBAL();
        _flightBal.CancelFlight(flightID);
        DropDownList1.Enabled = false; btnAddPrice.Enabled = false;
        Label2.Text = "Cancel completed";
    }
}
